public class BFirma implements Firma {

	@Override
	public double alisFiyati(Doviz d) {
		if (d instanceof Dolar)
			return 2.20;
		else if (d instanceof Euro)
			return 2.78;
		else
			return 0;
	}

	@Override
	public double satisFiyati(Doviz d) {
		if (d instanceof Dolar)
			return 2.22;
		else if (d instanceof Euro)
			return 2.80;
		else
			return 9999;
	}

}
